#define _CRT_SECURE_NO_WARNINGS

void moveZeroes(int* nums, int numsSize)
{
    int index = 0;
    for (int i = 0; i < numsSize; i++)
    {
        if (0 != nums[i])
        {
            nums[index++] = nums[i];
        }
    }
    while (index < numsSize)
    {
        nums[index++] = 0;
    }
}

int theMaximumAchievableX(int num, int t)
{
    return num + 2 * t;
}